<?php
$this->breadcrumbs=array(
	//'Subscribe'=>array('/subscribe'),
	'Cafe Owner',
);
$this->pageTitle=Yii::app()->name.' - My Cafes';
?>
<h1>My Caf&eacute;s</h1>

<div class="rc_main">
<p>Owner of:</p>
<?php 
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'coffeeOwner-grid',
	'dataProvider'=>$shopsData,
	//'filter'=>$model,
	'columns'=>array(
		//'id',
		array(
			'name' => 'name',
			'type'=>'raw',
			'value' => 'CHtml::link(CHtml::encode($data->name),array("coffeeShop/viewShop","id"=>$data->id),array("target"=>"_blank"))',
		),
		'suburb',
		array(
			'name' => '',
			'type'=>'raw',
			'value' =>'Yii::app()->user->checkAccess("cafeOwnerSubscribe",array("shop"=>$data->id))?CHtml::link("Edit",array("coffeeShop/ownerUpdate","id"=>$data->id)):CHtml::link("Pay",array("/subscribe/cafeOwnerPay","id"=>$data->id))'
		),
	),
)); ?>

</div>
